/*
 *  InterpolatedData.h
 *  MarketDataAnalyzer 2
 *
 *  Created by jiro on 10/10/02.
 *  Copyright 2010 jiro music. All rights reserved.
 *
 */

#pragma once

#include <vector>

class InterpolatedData {
public:

	enum InterpolationType {

		NearestNeighbourProbabilityRevision, 

		NearestNeighbour,
		
		NoInterpolation,
	};
	
protected:

	int sampleCount;

	std::vector< double > validData;

	double density;

public:

	InterpolatedData( const std::vector< double >& validData, int sampleCount );

	virtual double GetAt( int index ) const;
	
	virtual InterpolationType GetInterpolationType() const;

	double GetDensity() const;

	double GetValidDataCount() const;
	
	double GetSampleCount() const;
	
	const std::vector< double > GetValidData() const;
	
private:

};
